<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	template="/WEB-INF/layouts/content.xhtml">

	<ui:define name="content">
		<h:form id="addConnection">
		<h2>#{messageSource['connection']}</h2>
		<h:messages></h:messages>
		<div class="input"><div  class="formtext">#{messageSource['connection.from']}*</div><p:inputText id="from" value="#{connection.from}"/><h:message for="from"/></div>
		<div class="input"><div class="formtext">#{messageSource['connection.to']}*</div><p:inputText id="to" value="#{connection.to}"/><h:message for="to"/></div>
		<div class="input"><div class="formtext">#{messageSource['connection.seatsAvailable']}*</div><p:inputText id="seatsAvailable" value="#{connection.seatsAvailable}"/><h:message for="to"/></div>
		<div class="input"><div class="formtext">#{messageSource['connection.when']}*</div>
			<p:calendar id="when" value="#{connection.tripDate}" locale="#{languageBean.locale}" timezone="CET" ></p:calendar></div>
		<div class="input"><div  class="formtext">#{messageSource['connection.price']}*</div><p:inputText id="price" value="#{connection.price}"/><h:message for="price"/></div>
		<div class="input"><div  class="formtext">#{messageSource['connection.comment']}*</div><p:inputTextarea style="width:162px;height:100px;" id="comment" value="#{connection.comment}"/></div>
		<div class="input"><p:commandButton id="proceed" action="submit" value="Proceed"  update="@form"/></div>
		</h:form>
		</ui:define>
	</ui:composition>